import request from '@/utils/request'

// 查询保安值班列表
export function listSecurityDuty(query) {
  return request({
    url: '/security/securityDuty/list',
    method: 'get',
    params: query
  })
}

// 查询保安值班详细
export function getSecurityDuty(id) {
  return request({
    url: '/security/securityDuty/' + id,
    method: 'get'
  })
}

// 新增保安值班
export function addSecurityDuty(data) {
  return request({
    url: '/security/securityDuty',
    method: 'post',
    data: data
  })
}

// 修改保安值班
export function updateSecurityDuty(data) {
  return request({
    url: '/security/securityDuty',
    method: 'put',
    data: data
  })
}

// 删除保安值班
export function delSecurityDuty(id) {
  return request({
    url: '/security/securityDuty/' + id,
    method: 'delete'
  })
}
